{% extends "base-mobile.jinja" %}

{% block main %}
<div class="page d-single" id="d-single">
	<div class="ds-img">
		<img src="{{image_data.path}}!650" width="100%" />
	</div>
	<h1>{{share.title}}</h1>
	<div class="ds-author">{{share.user}}</div>
	{% if image_ext_data.colors %}
	<div class="ds-color">
		{% for c in image_ext_data.colors %}
			<a href="/share/search/color/{{c.value|replace('#', '')}}/" style="background:{{c.value}}"></a>
		{% endfor %}
	</div>
	{% endif %}
	{% if image_ext_data.tags %}
	<div class="ds-tag">
		{% for tag in image_ext_data.tags %}
			<a href="/share/search/tag/{{tag}}">{{tag}}</a>
		{% endfor %}
	</div>
	{% endif %}
	{% if image_ext_data.origins %}
	<ul class="ds-orign">
		{% for ori in image_ext_data.origins %}
			<li><span>{{ori.role}}</span>{{ori.user}}</span>
		{% endfor %}
	</ul>
	{% endif %}
	<div class="d-unlike" data-mid="{{image_data.id}}">
		<a href="javascript:;" class="ui-a"><b>喜欢</b><i></i></a>
	</div>
	<ul class="ds-item">
		{% for img in all_images %}
		<li>
			<a href="/share/detail/{{share.id}}/?mid={{img.id}}"><img class="lazyload" src="http://s.lovewith.me/static/images/blank.gif" data-original="{{img.path}}!100x100" width="100%" /></a>
		</li>
		{% endfor %}
	</ul>
</div>
{% endblock %}

{% block statsScript %}
{% autoescape off %}{{share.user.id|add_stats(share.user.username, '%sshare/detail/mobile/%s/' % (domain, share.id))}}{% endautoescape %}
{% endblock %}